import request from '@/utils/request'

export function getPictureList(params) {
  return request({
    url: process.env.VUE_APP_ADMIN_API + '/picture/getList',
    method: 'post',
    data: params
  })
}

export function addPicture(params) {
  return request({
    url: process.env.VUE_APP_ADMIN_API + '/upload',
    method: 'post',
    data: params
  })
}

export function uploadFile(params) {
  return request({
    url: process.env.VUE_APP_ADMIN_API + '/upload',
    method: 'post',
    data: params
  })
}

export function deleteBatch(uids) {
  return request({
    url: process.env.VUE_APP_ADMIN_API + '/picture/deleteBatch/'+uids,
    method: 'delete',
  })
}
